import request from '~/plugins/axios'
import { getmd5 } from '~/plugins/ulit'
// 获取文章列表
export function getarticleList(val1) {
    const ss = {
        "classStr": val1.classStr,
        "page": val1.page,
        "pageSize": val1.pageSize,
        "sign": getmd5(String(val1.page) + String(val1.pageSize))
    }
    return request({
        url: 'https://www.lovemsss.cn/bg/operateWebArticle/pageListArticle',
        method: 'post',
        data: ss
    })
}
// 获取文章列表
export function getarticleList1(val1) {
    const ss = {
        "classStr": val1.classStr,
        "page": val1.num,
        "pageSize": val1.size,
        "sign": getmd5(String(val1.num) + String(val1.size))
    }
    return request({
        url: 'https://www.lovemsss.cn/bg/operateWebArticle/pageListArticle',
        method: 'post',
        data: ss
    })
}
// 添加浏览次数
export function addbrowseNum(val1) {
    const ss = {
        "articleId": val1,
        "sign": getmd5(String(val1))
    }
    return request({
        url: 'https://www.lovemsss.cn/bg/operateWebArticle/addbrowseNum',
        method: 'post',
        data: ss
    })
}